package pl.word.domain.service;

import javax.ejb.Stateless;
import javax.ejb.TransactionAttribute;
import javax.ejb.TransactionAttributeType;
import javax.inject.Inject;

import pl.word.app.dao.UserDao;
import pl.word.domain.model.User;

/**
 * Klasa serwisowa dla Usera.
 * 
 * @author and.lachowski
 * 
 */
@Stateless
@TransactionAttribute(TransactionAttributeType.REQUIRED)
public class UserService {

	@Inject
	private UserDao userDao;
	
	public User getUserWithRoleByUsername(String username) {
		return userDao.getUserWithRoleByUsername(username);
	}
}
